import request from "@/utils/request";

const path = '/report'

// 营业额数据统计
export function turnoverStatistics(begin,end) {
  return request({
    url: path +　'/turnoverStatistics',
    method: 'get',
    params: {
      begin,
      end
    }
  })
}

// 用户统计
export function userStatistics(begin,end) {
  return request({
    url: path +　'/userStatistics',
    method: 'get',
    params: {
      begin,
      end
    }
  })
}

// 用户数据订单统计
export function ordersStatistics(begin,end) {
  return request({
    url: path +　'/ordersStatistics',
    method: 'get',
    params: {
      begin,
      end
    }
  })
}

// 预约统计排名TOP10
export function top10(begin,end) {
  return request({
    url: path +　'/top10',
    method: 'get',
    params: {
      begin,
      end
    }
  })
}

// 导出运营数据报表
export function exportInfor() {
  return request({
    url: path +　'/export',
    method: 'get',
    responseType: 'blob'
  })
}